import Request from "../request";

const PaperService = {

  create: (data) => {
    return Request.post(`/manual_questions/create`, data).then((res) => {
      const { code, msg, data } = res;
      if (code !== 200) throw msg;
      return data;
    });
  },
  addQuestion: (data) => {
    return Request.post(`/manual_questions`, data).then((res) => {
      const { code, msg, data } = res;
      if (code !== 200) throw msg;
      return data;
    });
  },

};
export default PaperService;